package com.cn.daoIntface;

import com.cn.entity.UserAddEntity;

import java.sql.SQLException;
import java.util.List;

public interface UserAddDaoIntface {

    int add(UserAddEntity entity, String type) throws SQLException, ClassNotFoundException;

    int update(UserAddEntity entity, String type) throws SQLException, ClassNotFoundException;

    List<UserAddEntity> queryAll(Integer currentPageNo, Integer pageSize) throws SQLException, ClassNotFoundException;

    List<UserAddEntity> queryAll(String id);

    List<UserAddEntity> queryAll();

    String maxid() throws SQLException, ClassNotFoundException;

}
